﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MsChartRendering
{
    public  class DataEntity
    {
        public string Key { set; get; }
        public decimal Value { set; get; }
       
    }
    public class Data
    {
        public  static  List<DataEntity> CreatDataforPieChart()
        {
            List<DataEntity> list= new List<DataEntity>();
            Random random= new Random(1);
           
            for (int i = 0; i < 10; i++)
            {
               DataEntity dataEntity=new DataEntity();
                dataEntity.Key = "Object " + i;
                dataEntity.Value = random.Next(1, 10);
                list.Add(dataEntity);

            }
            return list;
        }
    }
}